package com.xcx.baseManger.helper;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@AllArgsConstructor
@NoArgsConstructor
//z注意实体类写collection
@Document(collection = "user")
public class User {

    @Id
    private Object id;

    @Field("user_id")
    private Integer userId;
    @Field("username")
    private String username;
    @Field("role_id")
    private Integer roleId;

}
